package com.wicket.okrcalc.biz.service.dto.common;

import com.wicket.okrcalc.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc BusinessDataSetDto
 * @使用场景
 */
@Data
public class BusinessDataSetDto extends BaseDto implements Serializable {

  /**
   * 自定义字段1
   */
  @NotNull(message = "自定义字段1不能为空")
  @ApiModelProperty("自定义字段1")
  private String customField1;

  /**
   * 通用数值字段1（小数型）
   */
  @NotNull(message = "通用数值字段1（小数型）不能为空")
  @ApiModelProperty("通用数值字段1（小数型）")
  private Double comFloatField1;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BusinessDataSetDto that = (BusinessDataSetDto) o;
      return  customField1 == that.customField1&&comFloatField1 == that.comFloatField1;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), customField1,comFloatField1);
    }

}
